package com.baizhi.cmfz.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.xml.bind.ValidationEvent;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CmfzBanner implements Serializable {

    @TableId(value = "banner_id",type= IdType.AUTO)
    @Excel(name="轮播图编号")
    private Integer bannerId;
    @Excel(name="轮播图路径")
    private String bannerImageUrl;
    @Excel(name = "名字")
    private String bannerOldName;
    @Excel(name = "状态")
    private Integer bannerState;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @Excel(name = "日期")
    private Date bannerDate;
    @Excel(name = "描述")
    private String bannerDescription;
}
